package day3.homework;

public class TestPhone {
    public static boolean checkPhone(String[] phones,String phone){
        for (int i = 0; i < phones.length; i++) {
            if (phones[i].equals(phone)){
                System.out.println("电话重复！");
                return true;
            }
        }
        return false;
    }
    public static void main(String[] args) {
        String[] phones = {"12345674567"};
        String phone = "12345674567";
        System.out.println(checkPhone(phones,phone));
    }
}
